const audioManager: UniApp.BackgroundAudioManager =
  uni.getBackgroundAudioManager();
const audioNotification = uni.requireNativePlugin("XZH-musicNotification");

const onCreateNotification = async () =>
  new Promise((resolve) => {
    // audioNotification.createNotification(() => {
    //   console.log(234);
    //   resolve(true);
    // });
  });

const onInitAudio = async () => {
  audioNotification.init({});
  await onCreateNotification();
};

export { onInitAudio, audioManager, audioNotification };
